misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe
authorRicky WU <ricky_wu@realtek.com>
Wed, 20 Sep 2023 09:11:19 +0000 (09:11 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 29 Sep 2023 04:15:31 +0000 (05:15 +0100)
commit02f4373646d73ab810d5169d0a8b32c032efb3d7
treed4be68e29a53a181a8ef332bb653d503bc062737
parent718524b2164513800e6dad8a4edc918f5112a730
misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe

Origin: https://lore.kernel.org/all/37b1afb997f14946a8784c73d1f9a4f5@realtek.com/
Bug-Debian: https://bugs.debian.org/1052063

commit 101bd907b424 ("misc: rtsx: judge ASPM Mode to set PETXCFG Reg")
some readers no longer force #CLKREQ to low
when the system need to enter ASPM.
But some platform maybe not implement complete ASPM?
it causes some platforms can not boot

Like in the past only the platform support L1ss we release the #CLKREQ.
Move the judgment (L1ss) to probe,
we think read config space one time when the driver start is enough

Fixes: 101bd907b424 ("misc: rtsx: judge ASPM Mode to set PETXCFG Reg")
Signed-off-by: Ricky Wu <ricky_wu@realtek.com>
Tested-By: Jade Lovelace <lists@jade.fyi>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name misc-rtsx-Fix-some-platforms-can-not-boot-and-move-t.patch
drivers/misc/cardreader/rts5227.c
drivers/misc/cardreader/rts5228.c
drivers/misc/cardreader/rts5249.c
drivers/misc/cardreader/rts5260.c
drivers/misc/cardreader/rts5261.c
drivers/misc/cardreader/rtsx_pcr.c